import axios from 'axios';

const $axios = axios.create({
  baseURL: 'http://192.168.0.34:8082/calendar',
  timeout: 3000,
});

// 查询
export async function bookList(data) {
  // console.log(data,'data2' )
  // 请求方式要用data进行指定
  const response = await $axios.post('/list', data );
  return response.data;
}

// 新增
export async function bookInsert(data) {
  // 请求方式要用data进行指定
  const response = await $axios.post('/add', data);
  return response.data;
}
